#include <ESP8266WiFi.h>

const char *ssid = "CMCC-6Q92";
const char *password = "bmbvkhi3";



void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);

  WiFi.begin(ssid,password);
  Serial.print("正在连接：");
  Serial.print(ssid);Serial.println("......");

  int i = 0;
  while(WiFi.status() != WL_CONNECTED){
    delay(1000);
    Serial.print(i++);Serial.print(' ');
  }

  Serial.println("");
  Serial.println("连接成功");
  Serial.print("IP地址为：");
  Serial.println(WiFi.localIP());

}

void loop() {
  // put your main code here, to run repeatedly:

}
